#ifndef ACTIONLISTEN_H
#define ACTIONLISTEN_H
#include <iostream>
#include "token.h"
#include "iaction_listener.h"

class ActionListen : public virtual mqtt::iaction_listener
{
public:
	ActionListen() = default;
	ActionListen(const std::string& name);

protected:

    void on_failure(const mqtt::token& tok) override;

    void on_success(const mqtt::token& tok) override;

    std::string m_name;
};

#endif // ACTIONLISTEN_H
